package jjn.time_api.case7;

import java.time.LocalDate;
import java.time.Period;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/16 14:03
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            LocalDate start = LocalDate.parse(scanner.nextLine());
            LocalDate end = LocalDate.parse(scanner.nextLine());
            Period period = Period.between(start, end);
            System.out.println("Years: " + period.getYears());
            System.out.println("Months: " + period.getMonths());
            System.out.println("Days: " + period.getDays());
        }
    }
}
